package org.visionlibrary.image.geomtric.model;

import java.util.List;

import org.visionlibrary.image.geomtric.lines.Lines;
import org.visionlibrary.image.geomtric.util.Debug;


public class TGenericShape extends TShape {
	private TGenericShape(String name) {
		super(name);
	}
	
	public TGenericShape(String name, List<Vector2d> segments) {
		super(name);
		this.segments = segments;
	}

	@Override
	public TShape copy(String name) {
		TGenericShape tcopy = new TGenericShape(name);
		tcopy.segments = Lines.copy(segments);
		return tcopy;
	}

	public String toString() {
		return Debug.Misc.getClassName(this.getClass()) + "("
				+ super.toString() + ");";
	}
}
